package com.patni.body;

import java.awt.Color;

import javax.swing.JFrame;

public class MainFrame{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static JFrame j;
	public MainFrame(){
		j=new JFrame();
		j.setTitle("dddd");
		j.setLayout(null);
		j.setSize(800,500);
		Body mainlabel=new Body(250,400);
		
		mainlabel.setLocation(100, 50);
		j.add(mainlabel);
		j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		j.setBackground(Color.white);
		j.setVisible(true);
//		mainlabel.changeSize(500,400);
//		try {
//			Thread.sleep(5500);
//		} catch (InterruptedException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		mainlabel.changeSize(400,600);

	}
	

	
	public static void main(String[] args){
		new MainFrame();
		j.repaint();
	}
}
